package model;

/**
 * Class Grass.
 * Grass grows, decays, gets eaten and regrows.
 * @author Team X
 * @version 1
 */
public class Grass
{
	/**
	 * Constructor
	 */
    public Grass(Field field, Location location)
    {
    	placeGrass(field, location);
    }
    
    /**
     * Place grass in a square on a field.
     * @param field
     * @param location
     */
    public void placeGrass(Field field, Location location)
    {
    	// Empty field if occupied 
    	if(location != null)
    	field.clear(location);
    	
    	// Place grass
        field.place(this, location);
    }

}